﻿using FM.Storage.Models;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace FM.Storage.Abstract
{
    public interface ILocalFileManager
    {
        Task<UploadResult> ChunkUploadAsync(HttpRequest request);



        Task<UploadResult> UploadAsyncAsync(HttpRequest request);
        /// <summary>
        /// 获取文件名
        /// </summary>
        /// <param name="physicalPath"></param>
        /// <param name="chunkNumber"></param>
        /// <param name="identifier"></param>
        /// <returns></returns>
        string GetChunkFilename(int chunkNumber, string identifier);
    }
}
